
# include "dfxKeyboard_Win32.h"
# include "dfxWindow.h"

# pragma comment(lib, "../Debug/DFXEngine.lib")

namespace DFX
{
    extern "C"
    {
        DFXRESULT DFX_EXPORT_ONLY CreateKeyboard(Window *w, Keyboard **k);
    }

    DFXRESULT CreateKeyboard(Window *w, Keyboard **k)
    {
        if (w && !*k)
        {
            *k = new Keyboard_Win32(w);
            w->SetKeyboard(*k);

            return DFX_SUCCESS;
        }

        return DFX_CREATEFAILED;
    }
}